const gulp = require('gulp');
const htmlmin = require('gulp-minify-html');
const cssmin = require('gulp-cssmin');
const imagemin = require('gulp-imagemin');

gulp.task('htmlmin', function () {
    return gulp.src('./src/html/*.html')
        .pipe(htmlmin({
            collapseWhitespace: true
        }))
        .pipe(gulp.dest('./dist/html'));
});
gulp.task('cssmin', function () {
    return gulp.src(['./src/css/*.css', '!./src/css/*.min.css'])
        .pipe(cssmin())
        .pipe(gulp.dest('./dist/css'));
});
gulp.task('imagemin', function () {
    return gulp.src('./src/img/*')
        .pipe(imagemin())
        .pipe(gulp.dest('./dist/img'));
});